package com.fafa.yygh.hosp.service;

import com.fafa.yygh.model.hosp.Department;
import com.fafa.yygh.vo.hosp.DepartmentQueryVo;
import com.fafa.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author Sire
 * @version 1.0
 * @date 2022-02-11 20:33
 */
public interface DepartmentService {

    /**
     * 上传科室信息
     *
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);

    /**
     * 查询科室信息（分页）
     *
     * @param page
     * @param limit
     * @param departmentQueryVo
     * @return
     */
    Page<Department> selectPage(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    /**
     * 删除科室（物理删除）
     *
     * @param hoscode
     * @param depcode
     */
    void removeDepartment(String hoscode, String depcode);

    List<DepartmentVo> findDeptTree(String hoscode);

    String getDepName(String hoscode, String depcode);

    /**
     * 获取部门
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartment(String hoscode, String depcode);
}
